<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p2_元素消失方式</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            border: 5px solid #000;
        }
        .d1 {
            background-color: #ff0000;
            transition: 0.1ms;
        }
        .d1:hover {
            transform: scale(0);
        }
        .d2 {
            background-color: #00FF00;
        }
        .d2:hover {
            display: none;
        }
        .d3 {
            background-color: #0000FF;
        }
        .d3:hover {
            background-color: rgba(151,515,545,0);
        }
    </style>
</head>
<body>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
</body>
</html>